/* =====================================================================
   LYMANKONG WEB — NOUVELLE PAGE D'ACCUEIL (2027)
   Feuille autonome pour index.html. Classes préfixées « hv- ».
   Thème sombre par défaut, thème clair avec body.light-mode.
   ===================================================================== */
@property --hv-ang { syntax: '<angle>'; inherits: false; initial-value: 0deg; }

.hv-home {
    --bg: #0B1430; --surface: #131D3D; --surface2: #18244A; --ink: #EEF1F8; --text: #DCE2EF; --muted: #A9B3C9;
    --line: rgba(238, 241, 248, .12); --primary: #8DA9FF; --primary-ink: #0B1430; --gold: #E8A33A; --gold-text: #F0B95A;
    --green: #5FD3A0; --night: #081026; --shadow: rgba(0, 0, 0, .35);
    --f-display: 'Bricolage Grotesque', 'Segoe UI', sans-serif; --f-serif: 'Instrument Serif', Georgia, serif;
    --f-body: 'Plus Jakarta Sans', 'Segoe UI', system-ui, sans-serif;
    --r-shape: 30px 30px 30px 6px; --r-shape-r: 30px 6px 30px 30px;
}
body.hv-home.light-mode {
    --bg: #FAF7F0; --surface: #FFFFFF; --surface2: #F1ECE1; --ink: #0E1B3D; --text: #1B2440; --muted: #5A6378;
    --line: rgba(14, 27, 61, .12); --primary: #1F4FD1; --primary-ink: #FFFFFF; --gold-text: #8C5A0A; --green: #17704F;
    --night: #0E1B3D; --shadow: rgba(14, 27, 61, .14);
}

.hv-home *, .hv-home *::before, .hv-home *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.hv-home {
    margin: 0; background: var(--bg); color: var(--text); font-family: var(--f-body); font-size: 16px; line-height: 1.6;
    -webkit-font-smoothing: antialiased; overflow-x: hidden; transition: background .4s ease, color .4s ease;
}
.hv-home img, .hv-home iframe, .hv-home video { max-width: 100%; }
:where(.hv-home) a { color: inherit; }
:where(.hv-home) :where(h1, h2, h3, p, figure, blockquote) { margin: 0; }
.hv-home button { font-family: inherit; }
.hv-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Typographie et utilitaires ---------- */
.hv-wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.hv-display { font-family: var(--f-display); font-weight: 800; letter-spacing: -.02em; line-height: 1.05; color: var(--ink); }
.hv-serif { font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: 0; }
.hv-h2 { font-size: clamp(32px, 4vw, 52px); }
.hv-h3 { font-size: clamp(22px, 2.2vw, 26px); line-height: 1.15; }
.hv-white { color: #FFFFFF; }
.hv-muted { color: var(--muted); }
.hv-primary-text { color: var(--primary); }
.hv-gold-text { color: var(--gold-text); }
.hv-note { margin-top: 14px !important; font-size: 13px; color: var(--muted); }
.hv-stack { display: flex; flex-direction: column; gap: 22px; }
.hv-gap-xs { gap: 10px; } .hv-gap-sm { gap: 14px; } .hv-gap-lg { gap: 48px; } .hv-gap-xl { gap: 56px; }
.hv-row { display: flex; flex-wrap: wrap; gap: 14px; }
.hv-center { display: flex; justify-content: center; }
.hv-center-text { text-align: center; align-items: center; }
.hv-eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-text); }
.hv-eyebrow::before { content: ''; width: 28px; height: 2px; background: var(--gold); transform-origin: left; animation: hvGrow 1.2s ease both; }
.hv-eyebrow--light { color: #E8A33A; }
.hv-eyebrow--center { align-self: center; }
.hv-gold-shimmer { background: linear-gradient(90deg, #E8A33A 0%, #FFE3A3 45%, #E8A33A 60%, #C98A1E 100%); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: hvShimmer 4s linear infinite; }
.hv-shape { border-radius: var(--r-shape); }
.hv-shape-r { border-radius: var(--r-shape-r); }
.hv-hide-sm, .hv-hide-md { }

/* ---------- Boutons ---------- */
.hv-btn { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 24px; border-radius: 999px; font-weight: 700; font-size: 15px; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; background: none; color: inherit; }
.hv-btn::after { content: ''; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent); transform: skewX(-20deg); transition: left .6s ease; }
.hv-btn:hover::after { left: 130%; }
.hv-btn:hover { transform: translateY(-3px); }
.hv-btn i { transition: transform .25s ease; }
.hv-btn:hover i.fa-arrow-right { transform: translateX(4px); }
.hv-btn:focus-visible, .hv-icon-btn:focus-visible, .hv-home a:focus-visible { outline: 3px solid #E8A33A; outline-offset: 3px; }
.hv-btn--primary { background: var(--primary); color: var(--primary-ink); }
.hv-btn--primary:hover { box-shadow: 0 14px 30px rgba(31, 79, 209, .3); color: var(--primary-ink); }
.hv-btn--gold { background: #E8A33A; color: #0E1B3D; }
.hv-btn--gold:hover { box-shadow: 0 14px 30px rgba(232, 163, 58, .35); color: #0E1B3D; }
.hv-btn--ghost { border-color: var(--line); color: var(--ink); }
.hv-btn--ghost:hover { border-color: var(--gold); }
.hv-btn--glass { border-color: rgba(255, 255, 255, .45); color: #FFFFFF; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.hv-btn--outline-light { border-color: rgba(201, 210, 230, .4); color: #FFFFFF; }
.hv-btn--outline-light:hover { border-color: #E8A33A; color: #FFFFFF; }
.hv-btn--night { background: #0E1B3D; color: #FFFFFF; align-self: flex-start; }
.hv-btn--night:hover { color: #FFFFFF; }
.hv-icon-btn { min-width: 44px; height: 44px; padding: 0 12px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; font-weight: 700; font-size: 13px; transition: transform .3s ease, border-color .3s ease; }
.hv-icon-btn:hover { transform: rotate(-8deg) scale(1.05); border-color: var(--gold); }
#theme-toggle { width: 44px; padding: 0; }

/* ---------- Bandeau d'informations ---------- */
.hv-topbar { background: var(--night); color: #C9D2E6; font-size: 13px; }
.hv-topbar__inner { display: flex; flex-wrap: wrap; gap: 6px 24px; justify-content: space-between; align-items: center; min-height: 40px; padding-top: 6px; padding-bottom: 6px; }
.hv-topbar__infos { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.hv-topbar__infos a { text-decoration: none; }
.hv-topbar__infos a:hover { color: #E8A33A; }
.hv-topbar i { color: #E8A33A; margin-right: 4px; }
.hv-topbar__motto { font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: 12px; }

/* ---------- En-tête (le menu téléphone est ajouté par script.js) ---------- */
body.hv-home > header.hv-header { position: sticky; top: 0; z-index: 1000; display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 80px; padding: 0 max(24px, calc((100% - 1200px) / 2 + 24px)); background: var(--bg); border-bottom: 1px solid transparent; transition: transform .4s ease, background .4s ease, border-color .4s ease, box-shadow .4s ease; }
body.hv-home > header.hv-header.scrolled { background: color-mix(in srgb, var(--bg) 84%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--line); box-shadow: 0 10px 30px var(--shadow); }
body.hv-home > header.hv-header.header-hidden { transform: translateY(-100%); }
.hv-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: 0 1 auto; min-width: 0; }
.hv-brand img { width: 62px; height: 40px; object-fit: contain; background: #FFFFFF; border-radius: 10px 10px 10px 3px; padding: 2px 4px; }
.hv-brand__text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.hv-brand__name, .hv-brand__sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hv-brand__name { font-family: var(--f-display); font-weight: 800; font-size: 17px; color: var(--ink); }
.hv-brand__sub { font-size: 11px; color: var(--muted); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.hv-header nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 18px; }
.hv-header nav a { position: relative; white-space: nowrap; text-decoration: none; font-weight: 600; font-size: 14.5px; color: var(--text); padding: 10px 2px; display: inline-block; }
.hv-header nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 4px; height: 2px; background: #E8A33A; transform: scaleX(0); transform-origin: right; transition: transform .35s ease; }
.hv-header nav a:hover::after, .hv-header nav a.active::after { transform: scaleX(1); transform-origin: left; }
.hv-header nav a:hover { color: var(--primary); }
.hv-header nav a.active { color: var(--ink); }
.hv-header nav a.hv-nav-80 { color: var(--gold-text); }
.hv-header .hv-nav-login { display: none; }
.hv-header__actions { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.hv-header .menu-toggle { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; font-size: 18px; order: 3; }
.hv-progress { position: absolute; left: 0; bottom: -1px; height: 3px; width: 0; background: linear-gradient(90deg, var(--primary), #E8A33A); border-radius: 0 3px 3px 0; }

/* ---------- Ouverture : photo du lycée qui zoome + texte qui défile ---------- */
.hv-hero { position: relative; min-height: clamp(620px, 88vh, 920px); display: flex; align-items: center; overflow: hidden; color: #FFFFFF; padding: 96px 0 130px; }
.hv-hero__bg { position: absolute; inset: 0; overflow: hidden; }
.hv-hero__bg img { width: 100%; height: 100%; object-fit: cover; animation: hvZoom 20s ease-in-out infinite alternate; }
.hv-hero__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 16, 38, .55) 0%, rgba(8, 16, 38, .62) 55%, rgba(8, 16, 38, .88) 100%); }
.hv-hero__inner { position: relative; z-index: 3; width: min(880px, 100%); margin: 0 auto; padding: 0 24px; display: flex; flex-direction: column; gap: 26px; text-align: center; }
.hv-hero__inner .hv-eyebrow { justify-content: center; }
.hv-hero__title { font-size: clamp(38px, 5.6vw, 74px); color: #FFFFFF; min-height: 2.2em; }
.hv-typed { color: #E8A33A; }
.hv-caret { display: inline-block; width: 3px; height: .85em; margin-left: 4px; background: #E8A33A; vertical-align: -.06em; animation: hvBlink .8s steps(1) infinite; }
.hv-hero__scroll { width: 100%; overflow: hidden; }
.hv-hero__scroll-content { display: flex; flex-direction: column; gap: 6px; width: max-content; animation: hvScrollLTR 20s linear infinite; }
.hv-hero__scroll-content h2 { font-family: var(--f-display); font-weight: 800; font-size: clamp(22px, 2.4vw, 30px); color: #FFFFFF; white-space: nowrap; }
.hv-hero__scroll-content p { font-size: 18px; color: #DCE2EF; white-space: nowrap; }
.hv-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.hv-hero__chip { align-self: center; display: inline-flex; align-items: center; gap: 12px; padding: 10px 18px; background: rgba(14, 27, 61, .7); color: #FFFFFF; border: 1px solid rgba(232, 163, 58, .4); border-radius: 18px 18px 18px 4px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); text-decoration: none; font-size: 14px; transition: transform .3s ease; }
.hv-hero__chip:hover { transform: translateY(-3px); color: #FFFFFF; }
.hv-hero__chip strong { color: #E8A33A; }
.hv-dot { width: 10px; height: 10px; border-radius: 50%; background: #5FD3A0; box-shadow: 0 0 0 4px rgba(95, 211, 160, .25); animation: hvPulseDot 2s ease-in-out infinite; }
.hv-scroll-cue { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 3; width: 30px; height: 48px; border: 2px solid rgba(255, 255, 255, .7); border-radius: 16px; }
.hv-scroll-cue span { position: absolute; left: 50%; top: 9px; width: 4px; height: 9px; margin-left: -2px; border-radius: 2px; background: #E8A33A; animation: hvCue 1.6s ease-in-out infinite; }
.hv-cascade > * { opacity: 0; animation: hvRise .9s cubic-bezier(.2, .8, .2, 1) forwards; }
.hv-cascade > *:nth-child(1) { animation-delay: .15s; } .hv-cascade > *:nth-child(2) { animation-delay: .35s; } .hv-cascade > *:nth-child(3) { animation-delay: .55s; }
.hv-cascade > *:nth-child(4) { animation-delay: .75s; } .hv-cascade > *:nth-child(5) { animation-delay: .95s; }

/* Emblème des 80 ans : halo, anneau qui tourne, main « Cliquez ici » */
.hv-emblem { position: absolute; right: 5%; top: 44px; z-index: 4; width: 132px; height: 132px; display: grid; place-items: center; text-decoration: none; }
.hv-emblem::before { content: ''; position: absolute; inset: -6px; border-radius: 50%; background: radial-gradient(circle, rgba(232, 163, 58, .55), rgba(232, 163, 58, 0) 70%); animation: hvGlow 3.2s ease-in-out infinite; }
.hv-emblem__ring { position: absolute; inset: 0; border-radius: 50%; border: 2px dashed rgba(232, 163, 58, .85); animation: hvSpin 18s linear infinite; }
.hv-emblem img { position: relative; width: 104px; height: 104px; object-fit: contain; transition: transform .4s ease; }
.hv-emblem:hover img { transform: scale(1.08) rotate(-4deg); }
.hv-emblem__label { position: absolute; top: -16px; left: 50%; transform: translateX(-50%); white-space: nowrap; background: #0E1B3D; color: #E8A33A; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; animation: hvBob 1.6s ease-in-out infinite; }
.hv-emblem__hand { position: absolute; right: -6px; bottom: -4px; width: 46px; height: 46px; border-radius: 50%; background: #FFFFFF; color: #0E1B3D; display: grid; place-items: center; box-shadow: 0 8px 20px rgba(0, 0, 0, .25); animation: hvTap 1.6s ease-in-out infinite; }
.hv-emblem__hand::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #E8A33A; animation: hvRipple 1.6s ease-out infinite; }

/* ---------- Texte défilant ---------- */
.hv-ticker { overflow: hidden; background: #E8A33A; color: #0E1B3D; }
.hv-ticker__track { display: flex; width: max-content; animation: hvMarquee 40s linear infinite; }
.hv-ticker:hover .hv-ticker__track { animation-play-state: paused; }
.hv-ticker__item { display: flex; align-items: center; gap: 22px; padding: 14px 22px; font-family: var(--f-display); font-weight: 700; font-size: 18px; white-space: nowrap; }
.hv-ticker__item i { font-size: 14px; }

/* ---------- Sections ---------- */
.hv-section { padding: 104px 0; }
.hv-section--tight { padding: 88px 0; }
.hv-section--alt { background: var(--surface2); }
.hv-section--flush-top { padding-top: 0; }
.hv-section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; }
.hv-two { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.hv-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.hv-card { background: var(--surface); border: 1px solid var(--line); }

/* Chiffres */
.hv-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.hv-stat { position: relative; padding: 32px; display: flex; flex-direction: column; gap: 4px; }
.hv-stat + .hv-stat { border-left: 1px solid var(--line); }
.hv-stat::before { content: ''; position: absolute; left: 32px; top: 0; width: 40px; height: 3px; background: #E8A33A; transform: scaleX(0); transform-origin: left; transition: transform .5s ease; }
.hv-stat:hover::before { transform: scaleX(1); }
.hv-stat__num { font-family: var(--f-display); font-weight: 800; font-size: clamp(40px, 4.2vw, 52px); letter-spacing: -.02em; line-height: 1.05; color: var(--ink); }
.hv-stat__num .hv-serif { font-size: .8em; }
.hv-stat__label { color: var(--muted); font-weight: 600; }
.hv-stat__sub { color: var(--muted); font-size: 13px; }

/* Apparition au défilement */
.hv-reveal { opacity: 0; transform: translateY(40px); transition: opacity .9s cubic-bezier(.2, .8, .2, 1), transform .9s cubic-bezier(.2, .8, .2, 1); }
.hv-reveal.is-in { opacity: 1; transform: none; }
.hv-d1 { transition-delay: .12s; } .hv-d2 { transition-delay: .24s; } .hv-d3 { transition-delay: .36s; }

/* Bordure lumineuse qui circule + inclinaison 3D */
.hv-shine { position: relative; isolation: isolate; }
.hv-shine::before { content: ''; position: absolute; inset: -2px; border-radius: inherit; padding: 2px; background: conic-gradient(from var(--hv-ang), transparent 0 60%, #E8A33A 75%, var(--primary) 85%, transparent 100%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: hvRot 4s linear infinite; opacity: .85; z-index: -1; pointer-events: none; }
.hv-shine:hover::before { animation-duration: 1.4s; opacity: 1; }
.hv-tilt { transition: transform .45s cubic-bezier(.2, .8, .2, 1), box-shadow .45s ease; }
.hv-tilt:hover { transform: perspective(900px) rotateX(4deg) rotateY(-5deg) translateY(-8px); box-shadow: 0 30px 60px var(--shadow); }
.hv-grid-3 > .hv-card { padding: 34px; display: flex; flex-direction: column; gap: 16px; }
.hv-ico { width: 60px; height: 60px; display: grid; place-items: center; border-radius: 20px 20px 20px 4px; font-size: 24px; transition: transform .45s ease; }
.hv-tilt:hover .hv-ico { transform: rotate(-8deg) scale(1.1); }
.hv-ico--blue { background: rgba(141, 169, 255, .14); color: var(--primary); }
.hv-ico--green { background: rgba(95, 211, 160, .14); color: var(--green); }
.hv-ico--gold { background: rgba(232, 163, 58, .18); color: var(--gold-text); }

/* 80 ans */
.hv-80 { position: relative; overflow: hidden; background: var(--night); color: #C9D2E6; padding: 104px 0; }
.hv-80__sub { font-size: 32px; line-height: 1.25; }
.hv-80__text { font-size: 17px; max-width: 520px; }
.hv-star { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: #E8A33A; animation: hvTwinkle 3s ease-in-out infinite; }
.hv-countdown .a80-countdown { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.hv-countdown .a80-countdown__cell { border: 1px solid rgba(232, 163, 58, .35); border-radius: 20px 20px 20px 4px; padding: 18px 10px; text-align: center; background: rgba(255, 255, 255, .03); display: flex; flex-direction: column; gap: 2px; transition: transform .3s ease, border-color .3s ease; }
.hv-countdown .a80-countdown__cell:hover { transform: translateY(-4px); border-color: #E8A33A; }
.hv-countdown .a80-countdown__num { font-family: var(--f-display); font-weight: 800; font-size: 40px; color: #FFFFFF; line-height: 1.1; }
.hv-countdown .a80-countdown__num[data-unit="seconds"] { color: #E8A33A; display: inline-block; animation: hvTick 1s ease-in-out infinite; }
.hv-countdown .a80-countdown__label { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.hv-countdown .a80-countdown-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 14px; font-size: 14px; }
.hv-countdown .a80-countdown-meta i { color: #E8A33A; margin-right: 6px; }
.hv-countdown .a80-badge-provisoire { color: #E8A33A; font-weight: 700; }
.hv-countdown .a80-countdown-done { font-family: var(--f-display); font-size: 26px; color: #E8A33A; }
.hv-big-emblem { position: relative; width: min(420px, 100%); aspect-ratio: 1 / 1; display: grid; place-items: center; }
.hv-big-emblem__r1, .hv-big-emblem__r2, .hv-big-emblem__halo { position: absolute; border-radius: 50%; }
.hv-big-emblem__r1 { inset: 0; border: 1px solid rgba(232, 163, 58, .3); animation: hvSpin 40s linear infinite; }
.hv-big-emblem__r2 { inset: 36px; border: 1px dashed rgba(232, 163, 58, .45); animation: hvSpin 26s linear infinite reverse; }
.hv-big-emblem__halo { inset: 18%; background: radial-gradient(circle, rgba(232, 163, 58, .35), transparent 70%); animation: hvGlow 3.2s ease-in-out infinite; }
.hv-big-emblem img { position: relative; width: 72%; height: auto; animation: hvFloat 6s ease-in-out infinite; }

/* Proviseur */
.hv-prov { position: relative; }
.hv-prov__frame { overflow: hidden; border-radius: 32px 32px 32px 8px; border: 2px solid rgba(232, 163, 58, .5); background: #000; }
.hv-prov__frame img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: contain; transition: transform .8s ease; }
.hv-prov:hover .hv-prov__frame img { transform: scale(1.04); }
.hv-prov__badge { position: absolute; right: 20px; bottom: -26px; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 20px 20px 20px 4px; padding: 14px 20px; box-shadow: 0 18px 40px var(--shadow); animation: hvFloat 6s ease-in-out infinite; }
.hv-prov__badge strong { font-family: var(--f-display); color: var(--ink); }
.hv-prov__badge span { font-size: 14px; color: var(--muted); }
.hv-quote-icon { font-size: 40px; color: #E8A33A; }
.hv-prov__quote { font-size: clamp(24px, 2.4vw, 30px); line-height: 1.3; color: var(--ink); }
#btn-read-principal { align-self: flex-start; }

/* Vidéo */
.hv-video { position: relative; border-radius: 40px 40px 40px 10px; overflow: hidden; min-height: 480px; display: flex; align-items: flex-end; }
.hv-video__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: hvZoom 24s ease-in-out infinite alternate; }
.hv-video__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 16, 38, .92) 0%, rgba(8, 16, 38, .62) 55%, rgba(8, 16, 38, .15) 100%); }
.hv-video__content { position: relative; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px; padding: clamp(28px, 5vw, 56px); width: 100%; }
.hv-video__text { max-width: 540px; color: #C9D2E6; font-size: 17px; }
.hv-home .vp-thumb.hv-video__thumb { width: 168px; border: 3px solid #FFFFFF; border-radius: 22px 22px 22px 6px; }
.hv-video__play { position: absolute; inset: 0; margin: auto; z-index: 2; width: 62px; height: 62px; border-radius: 50%; background: #E8A33A; color: #0E1B3D; display: grid; place-items: center; font-size: 20px; }
.hv-video__pulse { position: absolute; inset: -10px; border-radius: 50%; border: 2px solid #E8A33A; animation: hvRipple 1.8s ease-out infinite; }

/* Actualités */
.hv-news { grid-column: span 2; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.hv-news-card { display: flex; flex-direction: column; overflow: hidden; }
.hv-news-card__media { position: relative; display: block; height: 220px; overflow: hidden; background: linear-gradient(135deg, #1F4FD1, #0E1B3D); }
.hv-news-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.hv-news-card:hover .hv-news-card__media img { transform: scale(1.08); }
.hv-news-card__media .hv-news-card__fallback { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--f-serif); font-style: italic; font-size: 34px; color: #E8A33A; }
.hv-news-card__body { padding: 24px 26px 26px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.hv-news-card__meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: 13px; color: var(--muted); }
.hv-chip { background: var(--surface2); color: var(--ink); font-weight: 700; padding: 4px 12px; border-radius: 999px; }
.hv-news-card__title { font-family: var(--f-display); font-weight: 800; font-size: 21px; line-height: 1.2; color: var(--ink); }
.hv-news-card__title a { text-decoration: none; }
.hv-news-card__excerpt { color: var(--muted); font-size: 15px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hv-news-card__actions { margin-top: auto; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding-top: 8px; border-top: 1px solid var(--line); }
.hv-news-card .action-btn { background: transparent; border: 0; color: var(--muted); cursor: pointer; font-size: 17px; width: 40px; height: 40px; border-radius: 50%; display: inline-grid; place-items: center; transition: background .25s ease, color .25s ease, transform .25s ease; }
.hv-news-card .action-btn:hover { background: var(--surface2); color: var(--ink); transform: scale(1.08); }
.hv-news-card .btn-like.liked, .hv-news-card .btn-like.liked i { color: #E0245E; }
.hv-news-card .likes, .hv-news-card .comments-count { font-size: 14px; color: var(--muted); margin-right: 6px; }
.hv-news-card__more { margin-left: auto; font-weight: 700; color: var(--primary); text-decoration: none; }
.hv-news-card__more:hover { color: var(--gold-text); }
.hv-news-empty { grid-column: 1 / -1; color: var(--muted); padding: 30px; text-align: center; }
.hv-skeleton { min-height: 380px; background: linear-gradient(90deg, var(--surface) 0%, var(--surface2) 50%, var(--surface) 100%); background-size: 200% 100%; animation: hvShimmer 1.4s linear infinite; }

/* Sondage (carte dorée) */
.hv-poll { padding: 32px; display: flex; flex-direction: column; gap: 16px; background: #E8A33A; color: #0E1B3D; }
.hv-poll .hv-display { color: #0E1B3D; }
.hv-poll__eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
#poll-preview { flex: 1; }
#poll-preview .poll-facebook { background: none; box-shadow: none; padding: 0; color: #0E1B3D; max-width: none; }
#poll-preview .poll-title, #poll-preview strong { font-weight: 700; display: block; margin-bottom: 10px; color: #0E1B3D; }
#poll-preview .poll-options { display: flex; flex-direction: column; gap: 8px; }
#poll-preview .poll-option { display: flex; gap: 10px; align-items: center; }
#poll-preview .option-btn { flex: 1; padding: 10px 12px; border-radius: 14px 14px 14px 4px; border: 1px solid rgba(14, 27, 61, .25); background: rgba(255, 255, 255, .35); color: #0E1B3D; font-weight: 600; text-align: left; cursor: pointer; transition: background .2s ease; }
#poll-preview .option-btn:hover:not([disabled]) { background: rgba(255, 255, 255, .6); }
#poll-preview .progress-wrap { width: 90px; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
#poll-preview .progress { width: 100%; height: 8px; background: rgba(14, 27, 61, .15); border-radius: 999px; overflow: hidden; }
#poll-preview .progress-bar { height: 100%; background: #0E1B3D; transition: width .5s ease; }
#poll-preview .count { font-size: 13px; }
#poll-preview .poll-meta, #poll-stats { font-size: 13px; color: #3A3320; margin-top: 8px; }

/* Témoignages qui défilent sans fin */
.hv-marquee { overflow: hidden; margin-top: 40px; -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.hv-marquee__track { display: flex; gap: 24px; width: max-content; animation: hvMarquee 60s linear infinite; padding: 12px 0; }
.hv-marquee:hover .hv-marquee__track { animation-play-state: paused; }
.hv-quote { width: 400px; flex: 0 0 auto; padding: 30px; display: flex; flex-direction: column; gap: 18px; transition: transform .35s ease; }
.hv-quote:hover { transform: translateY(-6px) rotate(-.6deg); }
.hv-quote > i { font-size: 30px; color: #E8A33A; }
.hv-quote blockquote { font-size: 21px; line-height: 1.4; color: var(--ink); }
.hv-quote figcaption { display: flex; align-items: center; gap: 12px; margin-top: auto; font-size: 14px; color: var(--muted); font-weight: 600; }
.hv-avatar { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 14px 14px 14px 4px; background: var(--primary); color: var(--primary-ink); display: grid; place-items: center; font-weight: 800; }

/* Pied de page, contact, carte */
.hv-footer { position: relative; overflow: hidden; background: var(--night); color: #C9D2E6; padding: 92px 0 32px; }
.hv-footer__cta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; padding-bottom: 48px; border-bottom: 1px solid rgba(201, 210, 230, .18); }
.hv-footer__cta h2 { max-width: 640px; font-size: clamp(30px, 3.6vw, 46px); }
.hv-locate { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 32px; align-items: stretch; }
.hv-locate__text { justify-content: center; gap: 16px; }
.hv-locate__text .hv-btn { align-self: flex-start; }
.hv-map { position: relative; min-height: 340px; border-radius: 30px 30px 30px 6px; overflow: hidden; border: 2px solid rgba(232, 163, 58, .45); box-shadow: 0 24px 50px rgba(0, 0, 0, .35); background: #1B2440; }
.hv-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: saturate(1.05); }
.hv-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.hv-footer__brand { display: flex; align-items: center; gap: 12px; font-family: var(--f-display); font-weight: 800; font-size: 22px; color: #FFFFFF; }
.hv-footer__brand img { width: 64px; height: 38px; object-fit: contain; background: #FFFFFF; border-radius: 10px 10px 10px 3px; padding: 2px 4px; }
.hv-footer__title { font-family: var(--f-body); font-size: 16px; font-weight: 700; color: #FFFFFF; margin-bottom: 4px !important; }
.hv-footer__link { text-decoration: none; transition: color .25s ease, padding-left .25s ease; }
.hv-footer__link:hover { color: #E8A33A; padding-left: 6px; }
.hv-footer i { color: #E8A33A; margin-right: 6px; }
.hv-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 14px; padding-top: 24px; border-top: 1px solid rgba(201, 210, 230, .18); }
.hv-footer__bottom .hv-gold-shimmer { font-weight: 700; }

/* ---------- Fenêtres (commentaires, mot du proviseur) ---------- */
.hv-home .modal { display: none; position: fixed; z-index: 3000; inset: 0; overflow: auto; background: rgba(3, 5, 30, .82); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); padding: 16px; }
.hv-home .modal-content { position: relative; margin: 8vh auto; width: min(600px, 100%); background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 26px 26px 26px 6px; padding: 30px; box-shadow: 0 30px 70px rgba(0, 0, 0, .45); animation: hvModal .4s ease; }
.hv-home .modal-content--wide { width: min(820px, 100%); }
.hv-home .modal-content h2, .hv-home .modal-content h3 { color: var(--ink); margin-bottom: 16px; font-family: var(--f-display); }
.hv-home .close-modal { float: right; font-size: 30px; line-height: 1; font-weight: 700; cursor: pointer; color: var(--muted); }
.hv-home .close-modal:hover { color: #E8A33A; }
#proviseur-full-msg { max-height: 60vh; overflow-y: auto; white-space: pre-line; line-height: 1.8; text-align: justify; padding-right: 10px; }
#comments-list { max-height: 320px; overflow: auto; margin-top: 8px; padding-right: 8px; }
#comments-list .comment-item { border-bottom: 1px dashed var(--line) !important; }
#comments-list .text-muted { color: var(--muted); }
#comments-list .reply-btn { color: var(--primary) !important; }
.hv-comment-form { margin-top: 14px; display: flex; gap: 8px; }
.hv-comment-form input { flex: 1; min-height: 46px; padding: 0 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font: inherit; }
.hv-comment-form input:focus { outline: 2px solid #E8A33A; border-color: transparent; }

/* ---------- Retour en haut ---------- */
#back-to-top { position: fixed; right: 22px; bottom: 22px; z-index: 900; width: 52px; height: 52px; border-radius: 18px 18px 18px 4px; border: 0; cursor: pointer; background: var(--primary); color: var(--primary-ink); display: grid; place-items: center; font-size: 18px; box-shadow: 0 14px 30px rgba(0, 0, 0, .3); opacity: 0; transform: translateY(20px) scale(.8); pointer-events: none; transition: opacity .4s ease, transform .4s ease; }
#back-to-top.show { opacity: 1; transform: none; pointer-events: auto; }
#back-to-top.show:hover { transform: translateY(-4px); }

/* ---------- Animations ---------- */
@keyframes hvZoom { from { transform: scale(1); } to { transform: scale(1.15); } }
@keyframes hvScrollLTR { 0% { transform: translateX(100vw); } 100% { transform: translateX(-100%); } }
@keyframes hvMarquee { to { transform: translateX(-50%); } }
@keyframes hvRise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes hvFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes hvBlink { 50% { opacity: 0; } }
@keyframes hvGlow { 0%, 100% { transform: scale(.92); opacity: .55; } 50% { transform: scale(1.12); opacity: .95; } }
@keyframes hvSpin { to { transform: rotate(360deg); } }
@keyframes hvTap { 0%, 100% { transform: translate(0, 0) rotate(-12deg); } 50% { transform: translate(-6px, -8px) rotate(-12deg) scale(.92); } }
@keyframes hvRipple { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(1.9); opacity: 0; } }
@keyframes hvBob { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, -4px); } }
@keyframes hvRot { to { --hv-ang: 360deg; } }
@keyframes hvTick { 0% { transform: translateY(-6px); opacity: .3; } 25%, 100% { transform: none; opacity: 1; } }
@keyframes hvTwinkle { 0%, 100% { opacity: .15; transform: scale(.6); } 50% { opacity: 1; transform: scale(1.3); } }
@keyframes hvShimmer { to { background-position: -220% 0; } }
@keyframes hvGrow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes hvCue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(16px); } }
@keyframes hvPulseDot { 0%, 100% { box-shadow: 0 0 0 4px rgba(95, 211, 160, .25); } 50% { box-shadow: 0 0 0 8px rgba(95, 211, 160, .08); } }
@keyframes hvModal { from { opacity: 0; transform: translateY(-12px) scale(.98); } to { opacity: 1; transform: none; } }

/* ---------- Écrans moyens ---------- */
@media (max-width: 1320px) {
    .hv-header nav ul { gap: 12px; }
    .hv-header nav a { font-size: 14px; }
    .hv-hide-md { display: none !important; }
    .hv-header .hv-nav-login { display: list-item; }
}

/* ---------- Tablettes et téléphones ---------- */
@media (max-width: 960px) {
    body.hv-home > header.hv-header { min-height: 72px; padding: 0 16px; flex-wrap: nowrap; }
    .hv-header .menu-toggle { display: inline-grid; place-items: center; }
    .hv-header nav { display: none; }
    body.hv-home > header.hv-header.menu-open nav { display: block; position: absolute; left: 12px; right: 12px; top: calc(100% + 8px); background: var(--surface); border: 1px solid var(--line); border-radius: 24px 24px 24px 6px; padding: 12px 18px; box-shadow: 0 24px 48px rgba(0, 0, 0, .3); animation: hvRise .35s ease; }
    body.hv-home > header.hv-header.menu-open nav ul { flex-direction: column; align-items: stretch; gap: 0; }
    body.hv-home > header.hv-header.menu-open nav a { display: block; padding: 12px 4px; font-size: 16px; border-bottom: 1px solid var(--line); }
    body.hv-home > header.hv-header.menu-open nav li:last-child a { border-bottom: 0; }
    .hv-header__actions { margin-left: auto; }
    .hv-two, .hv-locate { grid-template-columns: 1fr; gap: 44px; }
    .hv-grid-3 { grid-template-columns: 1fr; }
    .hv-news { grid-column: auto; grid-template-columns: 1fr; }
    .hv-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hv-stat:nth-child(3) { border-left: 0; }
    .hv-stat:nth-child(n+3) { border-top: 1px solid var(--line); }
    .hv-footer__grid { grid-template-columns: 1fr; }
    .hv-hero { padding: 72px 0 160px; }
    .hv-emblem { right: 14px; top: auto; bottom: 26px; width: 104px; height: 104px; }
    .hv-emblem img { width: 80px; height: 80px; }
    .hv-scroll-cue { display: none; }
    .hv-quote { width: 310px; }
    .hv-section { padding: 80px 0; }
}
@media (max-width: 560px) {
    .hv-wrap { padding: 0 16px; }
    .hv-hide-sm { display: none !important; }
    .hv-brand__sub { display: none; }
    .hv-brand__name { font-size: 14px; }
    .hv-header__actions { gap: 6px; }
    .hv-lang { min-width: 0; padding: 0 10px; font-size: 12px; }
    body.hv-home > header.hv-header { gap: 8px; padding: 0 12px; }
    .hv-brand img { width: 52px; height: 34px; }
    .hv-hero__inner { padding: 0 16px; }
    .hv-hero__scroll-content p { font-size: 16px; }
    .hv-countdown .a80-countdown { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hv-stat { padding: 22px; }
    .hv-section-head .hv-btn { width: 100%; }
    .hv-video { min-height: 0; }
    .hv-video__content { justify-content: center; }
    .hv-prov__badge { right: 12px; padding: 10px 14px; }
    .hv-map { min-height: 280px; }
}

/* Thème clair : quelques ajustements */
body.hv-home.light-mode .hv-header .menu-toggle, body.hv-home.light-mode .hv-icon-btn { background: #FFFFFF; }
body.hv-home.light-mode .hv-tilt:hover { box-shadow: 0 30px 60px rgba(14, 27, 61, .16); }

/* Mouvement réduit : tout s'affiche sans animation */
@media (prefers-reduced-motion: reduce) {
    .hv-home *, .hv-home *::before, .hv-home *::after { animation: none !important; transition: none !important; }
    .hv-reveal, .hv-cascade > * { opacity: 1 !important; transform: none !important; }
    .hv-hero__scroll-content { width: auto; }
    .hv-hero__scroll-content h2, .hv-hero__scroll-content p { white-space: normal; }
}
